<?php

namespace Controller;

use Connect\ConnectManager;

class IndexController extends Controller
{
    public function login()
    {
        $uid =  $this->request['uid'];
        $manager = ConnectManager::getInstance();

        $manger->addClient($uid, $this->meta['connection']);
    }

    public function logout()
    {
        $uid =  $this->request['uid'];
        $manager = ConnectManager::getInstance();

        $manger->removeClient($uid, $this->meta['connection']);
    }
}
